import Vue from 'vue'
import App from './App'
import '../static/weui/weui.css'
import '../static/iconfont/iconfont.css'

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue(App)
app.$mount()

export default {
  // 这个字段走 app.json
  config: {
    // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    pages: ['^pages/home/main'],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: 'E童盟',
      navigationBarTextStyle: 'black'
    },
    tabBar: {
      color: '#999999',
      selectedColor: '#E93B3D',
      backgroundColor: '#ffffff',
      borderStyle: 'white',
      list: [
        {
          pagePath: 'pages/home/main',
          text: '首页',
          iconPath: 'static/images/tabbar/home.png',
          selectedIconPath: 'static/images/tabbar/home_sel.png'
        },
        {
          pagePath: 'pages/goods/main',
          text: '商品',
          iconPath: 'static/images/tabbar/goods.png',
          selectedIconPath: 'static/images/tabbar/goods_sel.png'
        },
        {
          pagePath: 'pages/shopping/main',
          text: '购物车',
          iconPath: 'static/images/tabbar/shopping.png',
          selectedIconPath: 'static/images/tabbar/shop_sel.png'
        },
        {
          pagePath: 'pages/my/main',
          text: '我',
          iconPath: 'static/images/tabbar/my.png',
          selectedIconPath: 'static/images/tabbar/my_sel.png'
        }
      ]
    }
  }
}
